@extends('layouts.main')

@section('content')
<div class="card-header d-flex">
<div class="m-3">
<a href="{{ route('categories.edit', $category->id) }}" class="btn btn-primary">Редактировать</a>
</div>
<div class="mt-3">
<form action="{{route('categories.destroy', $category->id)}} " method="POST">
    @csrf
    @method('DELETE')
    <input type="submit" class="btn btn-danger" value="Удалить">
</form>
</div>
</div>

<table id="example" class="table table-striped table-bordered" style="width:100%">
   
    <tbody>
        <tr>
            <td>ID</td>
            <td>{{ $category->id }}</td>
        </tr>
        <tr>
            <td>Наименование</td>
            <td>{{$category->title}}</td>
        </tr>
    </tbody>
@endsection